package net.chasing.androidbaseconfig.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * 状态栏通知被点击时触发的广播
 */
public class NotificationClickReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            Intent realIntent = intent.getParcelableExtra("intent");
            context.startActivity(realIntent);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
